package com.enums;

/**
 * 错误码定义
 *
 * @author daniel.yang
 * @date 2019-07-3
 */

public enum ErrorCodeEnum {

    SYSTEM_ERR("10080000", "服务器开了点小差,请稍后再试~"),
    USER_NOT_EXIST("10080001", "用户信息不存在"),
    VERIFY_SIGNATURE_ERR("10080002", "验证签名失败"),
    TOKEN_INVALID("10080003", "无效的token"),
    CACHE_ERR("10080005", "缓存失败"),
    NO_PRIVILEGE("10080006", "您没有权限进行此项操作"),
    DISABLE("10080007", "您暂时没有系统权限"),
    LOGIN_NAME_INVALID("10080008", "登录名不正确"),
    LOGIN_PASSWORD_INVALID("10080009", "登录密码不正确"),
    LOGIN_USERNAME_PASSWORD_INVALID("10080009", "邮箱或密码错误，请检查后重试"),
    REAL_NAME_INVALID("10080010", "真实名称不正确"),
    OPERATION_ERR("10080011", "操作失败"),
    USER_NOT_ACTIVED("10080012", "用户未激活或已冻结"),
    MERCHANT_NOT_EXIST("10080013", "商户不存在"),
    USER_INFO_INCORRECT("10080014", "用户名或密码不正确"),
    REQUEST_DUPLICATED("10080015", "重复的请求"),
    SERVICE_DISABLE("10080016", "服务未开通"),
    PARAM_ERR("10080018", "传递参数有误"),
    BAD_REQUEST("10080019", "错误的请求"),
    OLD_VERIFICATION_CODE_INVALID("10080026", "原验证码不正确"),
    VERIFICATION_CODE_INVALID("10080027", "验证码不正确"),
    VERIFICATION_CODE_DISABLED("10080030", "该验证码已失效，请重新获取验证码!"),
    OLD_PASSWORD_INVALID("10080028", "原密码不正确"),
    SAME_PASSOWRD_ERR("10080029", "新密码不能和原密码一致"),
    VERIFICATION_CODE_EXPIRED("10080032", "验证码过期"),
    VERIFICATION_CODE_MELEWATI("10080033", "验证码错误次数超出"),
    SMS_VERIFICATION_CODE_INVALID("10080037", "短信验证码不正确"),
    SEND_VERIFICATION_CODE_ERR("10080038", "发送短信验证码失败"),
    LOGIN_NAME_EXIST("10080041", "登录名已经存在"),
    BODY_NO_NOT_EXIST("10080046", "机身号不存在"),
    ID_NUMBER_EMPTY("10080047", "身份证号为空"),
    REQUEST_INVALID_JSON("10080213", "JSON格式错误"),
    SYJ_OPEN_NOT_EXIST("10080214", "收银家开放帐号不存在"),
    REQUEST_SYJ_ERROR("10080215", "请求收银家失败"),
    DOWN_FILE_ERROR("10080300", "下载文件失败"),
    AGENT_NOT_ACTIVED("10080200", "代理商未激活或已冻结"),
    DATA_NOT_FOUND("10080052", "数据不存在"),
    PAY_ERROR("10080053", "支付异常"),
    SUBORDINATE_MERCHANT_CONFIGURE_ERROR("10080054", "子商户配置失败"),
    REGISTERMICRO_ERROR("10080055", "商户注册失败"),
    CHANNEL_ONLINE_MERCH_NOT_EXIST("10080056", "渠道商户不存在"),
    AGENT_NOT_EXIST("10080057", "代理商不存在"),
    OEM_NOT_EXIST("10080058", "运营商不存在"),
    GET_VERIFYCODE_ERR("1008115151", "获取验证码失败"),
    BIND_CARD_ERR("1008115111", "绑卡失败"),
    ACTIVE_CODE_NOT_EXIST("1008115369", "激活码已分配"),
    CREDIT_CARD_NOT_EXIST("1008115370", "银行卡不存在"),
    MERCH_NOT_EXIST("1008115371", "商户不存在"),
    INIT_MERCH_PROD_CONFIG_ERR("1008115372", "初始化商户通道产品失败"),
    USER_IS_DISABLED("130", "商户已经被禁用"),
    WITHDRAW_PASSWORD_FAILURE("500", "密码输入次数过多，请于次日零点再操作"),
    BANK_TIMEOUT_ERR("10080099", "请求银行网络繁忙,请稍后再试~"),
    INVALID_FILE_ERR("10080103", "非法文件，系统只支持:pdf|xls|doc|txt"),
    FILE_TOOBIG_ERR("10080101", "上传文件过大,上传文件要求小于3m"),
    FILE_EMPTY_ERR("10080102", "上传文件不能为空"),
    BINDING_VERIFICATION_CODE("10080065", "用户未绑定验证码"),
    INVALID_JSON_DATA("10080066", "无效的请求参数"),
    BIG_TIME_LIMIT_ERR("10080067", "数据查询时间范围过大(40天内)"),
    REQUEST_TIME_FORMAT_ERR("10080068", "数据查询时间范围格式错误"),
    REQUEST_TIME_EMPTY_ERR("10080069", "数据查询请求时间不能为空"),
    EXPORT_DATALIST_BIG_ERR("10080070", "导出数据结果集过大"),
    TASKS_CURRENTLY_IN_AUDIT("10080071", "当前存在未完成审计的任务");

    private String code;
    private String message;

    private ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}